package cc.comac.mom.api;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import cc.comac.mom.bean.QualityPclrTestInvoice;
import cc.comac.mom.bean.QualityReject;
import cc.comac.mom.entity.PclrTestInvoicePrint;
import cc.comac.mom.util.ResultBean;

@FeignClient(name = "mom-qar-srv")
public interface QualityPclrTestInvoiceService {

	@RequestMapping(value = "/p/cs/QualityPclrTestInvoiceService/updateTestClassify",method = RequestMethod.POST)
	public ResultBean updateTestClassify(@RequestBody QualityPclrTestInvoice obj);
	
	@RequestMapping(value = "/p/cs/QualityPclrTestInvoiceService/selectByCondition",method = RequestMethod.POST)
	public ResultBean selectByCondition(@RequestBody QualityPclrTestInvoice obj);

	//开始实验
	@RequestMapping(value = "/p/cs/QualityPclrTestInvoiceService/beginTestByTestNo",method = RequestMethod.POST)
	public ResultBean beginTestByTestNo(@RequestParam(value="testNo") String testNo);

	@RequestMapping(value = "/p/cs/QualityPclrTestInvoiceService/receiveCompletedByTestNo",method = RequestMethod.POST)
	public ResultBean receiveCompletedByTestNo(@RequestBody QualityPclrTestInvoice obj);

	// 驳回按钮
	@RequestMapping(value = "/p/cs/QualityPclrTestInvoiceService/submitReject", method = RequestMethod.POST)
	public ResultBean submitReject(@RequestBody QualityReject QualityReject);

	@RequestMapping(value = "/p/cs/QualityPclrTestInvoiceService/submitAuditByTestNo",method = RequestMethod.POST)
	public ResultBean submitAuditByTestNo(@RequestParam(value="testNo") String testNo);
	
	@RequestMapping(value = "/p/cs/QualityPclrTestInvoiceService/auditCompletedByTestNo",method = RequestMethod.POST)
	public ResultBean auditCompletedByTestNo(@RequestParam(value = "testNo") String testNo);
	
	@RequestMapping(value = "/p/cs/QualityPclrTestInvoiceService/getByTestNo",method = RequestMethod.POST)
	public ResultBean getByTestNo(@RequestParam(value = "testNo") String testNo);
	@RequestMapping(value = "/p/cs/QualityPclrTestInvoiceService/exportData",method = RequestMethod.POST)
	public String exportData(@RequestParam(value = "request") HttpServletRequest request,
							 @RequestParam(value = "response") HttpServletResponse response, @RequestBody QualityPclrTestInvoice obj);

	@RequestMapping(value = "/p/cs/QualityPclrTestInvoiceService/printPclrTestInvoice",method = RequestMethod.POST)
	public PclrTestInvoicePrint printPclrTestInvoice(@RequestParam(value = "testNo") String testNo) throws Exception;
	
	@RequestMapping(value = "/QualityPclrTestInvoiceService/printNdtTestInvoice",method = RequestMethod.POST)
	public PclrTestInvoicePrint printNdtTestInvoice(@RequestParam(value = "testNo") String testNo) throws Exception;

}
